package com.example.iotmanagerment26.mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Map;

/**
 * 作者：太难猫
 * 创建时间： 2025/6/4 16:20
 */
public interface CatMapper {
    @Update("UPDATE cat SET num = #{num} WHERE id = 1")
    int set(int num);

    @Select("select * from cat where id=1")
    Map<String, Object> get();
}